function resizeup(obj) {
	var newheight = parseInt(hj$(obj).style.height, 10) + 50;
	hj$(obj).style.height = newheight + 'px';
}
function resizedown(obj) {
	var newheight = parseInt(hj$(obj).style.height, 10) - 50;
	if(newheight > 0) {
		hj$(obj).style.height = newheight + 'px';
	}
}
function addattachfrom() {
	var newnode = hj$('attachbodyhidden').firstChild.cloneNode(true);
	hj$('attachbody').appendChild(newnode);
}
function removeattachfrom() {
	hj$('attachbody').childNodes.length > 1 && hj$('attachbody').lastChild ? hj$('attachbody').removeChild(hj$('attachbody').lastChild) : 0;
}
function checkall(form) {
	for (var i=0;i<form.elements.length;i++) {
		var e = form.elements[i];
		if (e.name != 'chkall')
		e.checked = form.chkall.checked;
    }
}
function doit(operation) {
	hj$('do').value = operation;
	hj$('form1').submit();
}